package com.hxexp.weixin.mvc.userinfo.model;

import com.hxexp.weixin.hpe.api.login.model.LoginResultBean;

/**
 * 用户信息表单数据
 *
 * @author li.jiang
 *
 */
public final class UserInfoFormBean extends LoginResultBean {

    private static final long serialVersionUID = -7271026839639544765L;
    /**
     * 验证码
     */
    private String captcha;
    /**
     * 登录令牌
     */
    private String token;

    /**
     * @return the token
     */
    public String getToken() {
        return token;
    }

    /**
     * @param token
     *            the token to set
     */
    public void setToken(String token) {
        this.token = token;
    }

    /**
     * @return the captcha
     */
    public String getCaptcha() {
        return captcha;
    }

    /**
     * @param captcha
     *            the captcha to set
     */
    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    /*
     * (non-Javadoc)
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return String.format(
                "UserInfoFormBean [captcha=%s, token=%s, userId=%s, username=%s, password=%s, mobile=%s, gender=%s, email=%s, country=%s, province=%s, district=%s, city=%s, address=%s, postcode=%s, passengerType=%s, identificationNumber=%s, identificationType=%s, identificationTypeName=%s, fullname=%s, birthday=%s, openId=%s]",
                captcha, token, getUserId(), getUsername(), getPassword(), getMobile(), getGender(), getEmail(), getCountry(), getProvince(),
                getDistrict(), getCity(), getAddress(), getPostcode(), getPassengerType(), getIdentificationNumber(), getIdentificationType(),
                getIdentificationTypeName(), getFullname(), getBirthday(), getOpenId());
    }

}
